package com.gin.danbooru.response.field

import org.jsoup.nodes.Element

/**
 * @author BX-Gin
 * @from 2024/2/27 11:42
 */
class PostsTags(li: Element) {
    var name: String? = null
    var count: Int? = null
    var deprecated: Boolean? = null

    init {
        name = li.attr("data-tag-name")
        deprecated = li.attr("data-is-deprecated").toBoolean()
        count = li.getElementsByClass("post-count")[0].attr("title").toInt()
    }
}